Point

interface Point

A pair of numbers that in general are used to define coordinates in the two-dimensional space.

Functions

Link copied to clipboard
open fun empty(): Point
Returns an empty Point that has x and y values set to zero.
Link copied to clipboard
open fun of(x: Int, y: Int): Point
Returns the Point instance for the given x and y values.
Link copied to clipboard
open fun x(): Int
Returns the horizontal coordinate.
Link copied to clipboard
open fun y(): Int
Returns the vertical coordinate.